package com.ynhenc.pta.routeRank;

import java.awt.*;

public interface RouteSearchType {
	
	public String getRouteSearchTypeName();
	
	public static RouteSearchType SHORTEST = new RouteSearchTypeImpl( "SHORTEST" , Color.RED) ;
	public static RouteSearchType GREEN_01 = new RouteSearchTypeImpl( "GREEN_01" , Color.GREEN) ;
	public static RouteSearchType GREEN_02 = new RouteSearchTypeImpl( "GREEN_02" , Color.BLUE) ; 
	
	class RouteSearchTypeImpl implements RouteSearchType {
		
		private RouteSearchTypeImpl( String name , Color lineColor ) {
			this.name = name;
			this.lineColor = lineColor;
		}
		
		public String getRouteSearchTypeName() {
			return name;
		}
		
		public Color getLineColor() {
			return this.lineColor;
		}
		
		private String name;
		private Color lineColor;
	}
}
